package com.evon.yardmanagement.model;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name ="KEY_BIN")
@AttributeOverride( name="id", column = @Column(name="KEY_BIN_ID") )
public class KeyBin extends BaseModel implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	@Column(name ="KEY_BIN_NUMBER")
	private int binNumber;
	
	@Column(name ="KEY_BIN_NAME")
	private String name;
	
	@Column(name ="OCCUPIED")
	private Integer isOccupied;
	
	@Column(name = "ACTIVE")
	private int isActive;
	
	@Column(name= "CAPACITY")
	private int capacity;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="YARD_ID")
	private Yard yard;

	
	
   public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

public int getIsActive() {
		return isActive;
	}

	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}

	/* private Integer isActive;
    
    private Integer capacity;
    
    

	public Integer getIsActive() {
		return isActive;
	}

	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}

	public Integer getCapacity() {
		return capacity;
	}

	public void setCapacity(Integer capacity) {
		this.capacity = capacity;
	}
*/
	public Yard getYard() {
		return yard;
	}

	public void setYard(Yard yard) {
		this.yard = yard;
	}

	public int getBinNumber() {
		return binNumber;
	}

	public void setBinNumber(int binNumber) {
		this.binNumber = binNumber;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getIsOccupied() {
		return isOccupied;
	}

	public void setIsOccupied(Integer isOccupied) {
		this.isOccupied = isOccupied;
	}

	
	
}
